package io.renren.modules.sys.controller;

import io.renren.common.utils.R;
import io.renren.modules.sys.service.SystemInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author fun.pengzh
 * @class io.renren.modules.sys.controller.SystemInfoController
 * @desc 系统信息
 * @since 2022-01-23
 */
@RestController
@RequestMapping("/sys/info")
public class SystemInfoController {

    @Autowired
    private SystemInfoService systemInfoService;

    /**
     * 系统信息列表
     */
    @GetMapping("/list")
    public R list() {
        return R.ok().put("info", systemInfoService.getSystemInfo());
    }
}
